home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 November / PCWorld_2006-11_cd.bin / system / innosetup / isetup-5.1.8.exe / {app} / Examples / Example3.iss (.txt) < prev    next >
Encoding:
Inno Setup Script  |  2006-10-03  |  1.4 KB  |  30 lines

  1. ; -- Example3.iss --
  2. ; Same as Example1.iss, but creates some registry entries too.
  3. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
  4. [Setup]
  5. AppName=My Program
  6. AppVerName=My Program version 1.5
  7. DefaultDirName={pf}\My Program
  8. DefaultGroupName=My Program
  9. UninstallDisplayIcon={app}\MyProg.exe
  10. OutputDir=userdocs:Inno Setup Examples Output
  11. [Files]
  12. Source: "MyProg.exe"; DestDir: "{app}"
  13. Source: "MyProg.chm"; DestDir: "{app}"
  14. Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme
  15. [Icons]
  16. Name: "{group}\My Program"; Filename: "{app}\MyProg.exe"
  17. ; NOTE: Most apps do not need registry entries to be pre-created. If you
  18. ; don't know what the registry is or if you need to use it, then chances are
  19. ; you don't need a [Registry] section.
  20. [Registry]
  21. ; Start "Software\My Company\My Program" keys under HKEY_CURRENT_USER
  22. ; and HKEY_LOCAL_MACHINE. The flags tell it to always delete the
  23. ; "My Program" keys upon uninstall, and delete the "My Company" keys
  24. ; if there is nothing left in them.
  25. Root: HKCU; Subkey: "Software\My Company"; Flags: uninsdeletekeyifempty
  26. Root: HKCU; Subkey: "Software\My Company\My Program"; Flags: uninsdeletekey
  27. Root: HKLM; Subkey: "Software\My Company"; Flags: uninsdeletekeyifempty
  28. Root: HKLM; Subkey: "Software\My Company\My Program"; Flags: uninsdeletekey
  29. Root: HKLM; Subkey: "Software\My Company\My Program\Settings"; ValueType: string; ValueName: "Path"; ValueData: "{app}"
  30.